package com.fourhats.services.dto;

import java.math.BigDecimal;

public class PublicMarketDto implements SearchableEntity{
	
	private long id;
	
	private String name;
	
	private String subtitle;
	
	private String shortSubtitle;
	
	private String description;
	
	private boolean enable;

	private boolean highlight;
	
	private String imagePath;
	
	private BigDecimal latitude;
	
	private BigDecimal longitude;
	
	private String environmentAffect;
	
	private String qualityImprovement;
	
	private String organization;
	
	private String recognitionReceived;
	
	//usuario
	private Long userId;
	private String userName;
	private String userSurname;
		
	private Long qtyVisits;
	
	public PublicMarketDto(){
	}
	
	public PublicMarketDto(Long userId){
		this.userId = userId;
	}
	
	public long getId() {
		return id;
	}
	
	public void setId(long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setShortSubtitle(String shortSubtitle) {
		this.shortSubtitle = shortSubtitle;
	}
	
	public String getShortSubtitle() {
		return shortSubtitle;
	}

	public String getSubtitle() {
		return subtitle;
	}
	
	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
		this.setShortSubtitle(subtitle == null ? "" : subtitle.length() > 73 ? subtitle.substring(0, 70).concat("...") : subtitle);
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public boolean isEnable() {
		return enable;
	}
	
	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	
	public boolean isHighlight() {
		return highlight;
	}
	
	public void setHighlight(boolean highlight) {
		this.highlight = highlight;
	}
	
	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}
	
	public BigDecimal getLatitude() {
		return latitude;
	}

	public void setLatitude(BigDecimal latitude) {
		this.latitude = latitude;
	}

	public BigDecimal getLongitude() {
		return longitude;
	}

	public void setLongitude(BigDecimal longitude) {
		this.longitude = longitude;
	}
	
	public Long getUserId() {
		return userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public String getUserName() {
		return userName;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getUserSurname() {
		return userSurname;
	}
	
	public void setUserSurname(String userSurname) {
		this.userSurname = userSurname;
	}
	
	public Long getQtyVisits() {
		return qtyVisits;
	}

	public void setQtyVisits(Long qtyVisits) {
		this.qtyVisits = qtyVisits;
	}
	
	public String getEnvironmentAffect() {
		return environmentAffect;
	}

	public void setEnvironmentAffect(String environmentAffect) {
		this.environmentAffect = environmentAffect;
	}

	public String getQualityImprovement() {
		return qualityImprovement;
	}

	public void setQualityImprovement(String qualityImprovement) {
		this.qualityImprovement = qualityImprovement;
	}

	public String getOrganization() {
		return organization;
	}

	public void setOrganization(String organization) {
		this.organization = organization;
	}

	public String getRecognitionReceived() {
		return recognitionReceived;
	}

	public void setRecognitionReceived(String recognitionReceived) {
		this.recognitionReceived = recognitionReceived;
	}
	
	public Long getValue() {
		return this.id;
	}
	
	public String getLabel() {
		return this.getName();
	}

	public String getAutocompleteCategory() {
		return "Tiendas";
	}
}
